import request from '@/utils/request'

// 查询水表档案列表
export function listWaterData(query) {
  return request({
    url: '/meterread/weekusage/list',
    method: 'get',
    params: query
  })
}

// 查询周用水量汇总列表
export function listWeekusage(query) {
  return request({
    url: '/meterread/weekusage/hisList',
    method: 'get',
    params: query
  })
}

// 查询周用水量列表
export function listWeekusageImg(query) {
  return request({
    url: '/meterread/weekusage/hisList',
    method: 'get',
    params: query
  })
}

// 查询周用水量汇总详细
export function getWeekusage(id) {
  return request({
    url: '/meterread/weekusage/' + id,
    method: 'get'
  })
}

// 新增周用水量汇总
export function addWeekusage(data) {
  return request({
    url: '/meterread/weekusage',
    method: 'post',
    data: data
  })
}

// 修改周用水量汇总
export function updateWeekusage(data) {
  return request({
    url: '/meterread/weekusage',
    method: 'put',
    data: data
  })
}

// 删除周用水量汇总
export function delWeekusage(id) {
  return request({
    url: '/meterread/weekusage/' + id,
    method: 'delete'
  })
}
